<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
		<script src="{$_C.hy_path}js/detail/modernizr.custom.js"></script>
		
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
             <div class="am-btn-group am-btn-group-xs">
            
            <button data-title="新建两会文章" data-id="edit_npc_" data-href="index.php?g=admin&m=npc&a=editNpc" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-plus"></span> 新建两会文章</button>
		   
		    </div>
           
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-title">序号</th>
                <th class="table-type">标题</th>
                <th class="table-type">创建时间</th>
                <th class="table-type">链接</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	{foreach from=$sql_list item=sql}
            <tr>
              <td>{$sql.id}</td>
              <td>{$sql.title}</td>
              <td>{$sql.create_time|date_format:'Y-m-d'}</td>
              <td>{$sql.cdn}</td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                  	
                    <button data-title="{$sql.title}" data-id="edit_npc_{$sql.id}" data-href="index.php?g=admin&m=npc&a=editNpc&id={$sql.id}" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
                    <button data-title="{$sql.title}" data-id="comment_{$sql.id}" data-href="index.php?g=admin&m=npc&a=commentList&nid={$sql.id}" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 评论</button>
					<button data-param ="{ url:'index.php?g=admin&m=npc&a=delNpc&id={$sql.id}',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  </div>
                </div>
              </td>
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  	<div class="hy_page">
  {$list_page}
  </div>
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
	
   {include file='../Common/hy_footer.html'}
	</body>
</html>
